/**
 * @file global.h
 * @author TimeChicken (https://gitee.com/Time--Chicken)
 * @brief 全局变量接口
 * @version 0.1
 * @date 2021-08-26
 * 
 * @copyright Copyright (c) 2021
 * 
 */

#ifndef __GLOBAL_H__
#define __GLOBAL_H__



#define DEST_IP "192.168.17.255"
#define DEST_PORT 8080

typedef struct sockaddr sockaddr;
typedef struct sockaddr_in sockaddr_in;
#define MAX_LENGTH 255
#define REC_MAX 10240 //最大接收10240字节数据

#define ERR_EXIT(errInfo)   \
    do                      \
    {                       \
        perror(errInfo);    \
        exit(EXIT_FAILURE); \
    } while (0)


#endif /* __GLOBAL_H__ */